package com.airline.form;

import java.util.ArrayList;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.LabelValueBean;
import org.apache.struts.validator.ValidatorForm;

import com.airline.beans.Employee;
import com.airline.beans.Flight;



public class UpdateFlightForm extends ValidatorForm{
	
	
	public Flight getFlight() {
		return flight;
	}

	public void setFlight(Flight flight) {
		this.flight = flight;
	}

	public String getFlightid() {
		return flightid;
	}

	public void setFlightid(String flightid) {
		this.flightid = flightid;
	}

	Flight flight = new Flight();
	String error = null;
	String flightid = null;
	
	
	
	
	public UpdateFlightForm() {
		
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	@Override
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		
		
		UpdateFlightForm form = (UpdateFlightForm) request.getSession().getAttribute("updateFlightForm");
		
		this.flight = form.getFlight();
	}

	
	

}
